/*----------------------------------------------------------------------------*\
| /gamemode/init.lua                   | base server file                | SRV |
\*----------------------------------------------------------------------------*/

// Required
include("enum.lua")
include("config.lua")
include("shared.lua")

// Send client-side files
AddCSLuaFile("cl_chat.lua")
AddCSLuaFile("cl_deaths.lua")
AddCSLuaFile("cl_etc.lua")
AddCSLuaFile("cl_fatigue.lua")
AddCSLuaFile("cl_goals.lua")
AddCSLuaFile("cl_hud.lua")
AddCSLuaFile("cl_inventory.lua")
AddCSLuaFile("cl_notices.lua")
AddCSLuaFile("cl_player.lua")
AddCSLuaFile("cl_postprocess.lua")
AddCSLuaFile("cl_ragdolls.lua")
AddCSLuaFile("cl_scoreboard.lua")
AddCSLuaFile("cl_sniping.lua")
AddCSLuaFile("cl_time.lua")
AddCSLuaFile("cl_wswitch.lua")

// Send shared files
AddCSLuaFile("shared.lua")
AddCSLuaFile("headcrabs.lua")
AddCSLuaFile("infection.lua")
AddCSLuaFile("shd_chat.lua")
AddCSLuaFile("scoring.lua")
AddCSLuaFile("time.lua")

// Include server-side files
include("chat.lua")
include("chatcommands.lua")
include("deaths.lua")
include("entity.lua")
include("fatigue.lua")
include("goals.lua")
include("headcrabs.lua")
include("inventory.lua")
include("mapconfig.lua")
include("player.lua")
include("ragdolls.lua")
include("svn.lua")
include("time.lua")
include("wswitch.lua")
include("zombies.lua")

function GM:Initialize()
	game.ConsoleCommand( "mp_falldamage 1\n" )
end
function GM:GetGameDescription()
	if (ZDayConfig["debug"]) then
		return self.Name .. " (build " .. ZDayConfig["version"] .. ")"
	else
		return self.Name
	end
end 
function GM:PlayerSwitchFlashlight( ply, SwitchOn )
    if ( ply:GetActiveWeapon().IsFlashlight ) then
		return true
	else
		return false
	end
end
